package opera;

import book.Book;
import book.BookList;

public class ShowOperation implements IOpreation{
    @Override
    public void work(BookList bookList) {
        System.out.println("打印一切图书！");
        int a = bookList.getUsedSize();
        for (int i = 0; i < a; i++) {
            Book book = bookList.getBooks(i);
            System.out.println(book);
        }
    }
}
